package com.example.elderlycare.controller.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.util.Date;

public class VisitRequestBody {
    @Data
    public static class addVisit {
        private Integer checkRecordId;

        private String name;
        private String phone;
        private String number;
        private Integer certificateId;
    }

    @Data
    public static class updateVisit {
        private Integer id;
        private String name;
        @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
        private Date endTime;
        private String phone;
        private String number;
        private Integer certificateId;
        private Integer nurseId;
        private Integer elderId;
    }
}
